//
//  Comman.swift
//  JKBiblicalReading
//
//  Created by admin on 2018/8/13.
//  Copyright © 2018年 LC. All rights reserved.
//


import UIKit

let http_zongSJUrl = "http://fuyin-api.app.inping.com"//新的总接口

let APPNAME = "fuyin"
let APPKEY = "v1iy3np7rt"
let APPSECRET = "scMLzawxHNDvJlAuCJ3g"

//屏幕尺寸
let ScreenWidth: CGFloat = UIScreen.main.bounds.width
let ScreenHeight: CGFloat = UIScreen.main.bounds.height
//适配iPhone X
let kNavBarHeight = 44
//状态栏高度
let kStatusBarHeight = UIApplication.shared.statusBarFrame.size.height
//TabBarHeight
let kTabBarHeight = kStatusBarHeight > 20 ? 83 : 49
//NavBarHeight
let kTopHeight =  Float(kNavBarHeight) + Float(kStatusBarHeight)
//字体大小
let FONTSIZEOFSMALL: CGFloat = 10
let FONTSIZEOFNORMAL: CGFloat = 14
let FONTSIZEOFBIG: CGFloat = 18

let HOMECELLMARGIN: CGFloat = 10

// 切换跟控制器
let SWITCHROOTVIEWCONTROLLERNOTI = "SWITCHROOTVIEWCONTROLLERNOTI"
//监听表情按钮点击通知
let EMOTICONBUTTONCLICKNOTI = "EMOTICONBUTTONCLICKNOTI"
// 监听表情键盘中的删除按钮点击通知
let EMOTICONDELETEBUTTONCLICK = "EMOTICONDELETEBUTTONCLICK"

// 随机颜色
func randomColor() -> UIColor{
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
}
// 主题红颜色
func redSystemColor() -> UIColor{
    let r = CGFloat(228)
    let g = CGFloat(81)
    let b = CGFloat(78)
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
}
//设置颜色
func RGBColor(r: CGFloat,g: CGFloat,b: CGFloat) -> UIColor{
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
}
////RxSwift
//var disposeBag = DisposeBag()


//debug
//
let 屏蔽掉圣经评论上传图片 = true

